package io.finer.erp.jeecg.bas.dto;

import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/** 
 *  物料盘点记录信息和实时库存物料对比
* @author 作者 : xzs
* @version 创建时间：2021-8-17 10:23:06 
*/
@Data
public class MaterialContrastDTO {

	@ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**盘点单*/
//    @Excel(name = "盘点单", width = 15, dictTable = "bas_inventory_sheet", dicText = "code", dicCode = "id")
	@Dict(dictTable = "bas_inventory_sheet", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘点单")
    private java.lang.String sheetId;
	/**物料编码*/
//	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private java.lang.String code;
	/**物料分类*/
//	@Excel(name = "物料分类", width = 15, dictTable = "bas_material_category", dicText = "name", dicCode = "id")
//	@Dict(dictTable = "bas_material_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "物料分类")
    private java.lang.String categoryId;
	/**物料分类名称*/
	@Excel(name = "物料名称", width = 40)
    @ApiModelProperty(value = "物料名称")
    private java.lang.String fullname;
	/**盘点物料数量*/
	@Excel(name = "盘点物料数量", width = 20)
    @ApiModelProperty(value = "盘点物料数量")
    private java.math.BigDecimal quantitySum;
	//实时库存数量
	@Excel(name = "实时库存数量", width = 20)
    @ApiModelProperty(value = "实时库存数量")
	private java.math.BigDecimal qtySum;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15, dictTable = "bas_measure_unit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "bas_measure_unit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "计量单位")
    private java.lang.String unitId;
	
	//盘点数与实时库存数差值，用于将这两个数不同的数据放在前面
	private java.math.BigDecimal difference;
}
